<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isErrorPage="true"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - 页面未找到</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
    <style>
        .error-container {
            text-align: center;
            padding: 50px 20px;
        }
        .error-code {
            font-size: 72px;
            color: #e74c3c;
            margin-bottom: 20px;
        }
        .error-message {
            font-size: 24px;
            margin-bottom: 30px;
        }
        .back-link {
            display: inline-block;
            padding: 10px 20px;
            background-color: #3498db;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        .back-link:hover {
            background-color: #2980b9;
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>学生通讯录系统</h1>
        </header>

        <main>
            <div class="error-container">
                <div class="error-code">404</div>
                <div class="error-message">页面未找到</div>
                <p>抱歉，您访问的页面不存在或已被移除。</p>
                <a href="${pageContext.request.contextPath}/index.jsp" class="back-link">返回首页</a>
            </div>
        </main>

        <footer>
            <p> 2025 学生通讯录系统 - 南昌大学共青学院</p>
        </footer>
    </div>
</body>
</html>
